package com.eedi.framework.logger.framework.logger;

import com.eedi.framework.apilog.core.service.ApiAccessLog;
import com.eedi.framework.apilog.core.service.ApiAccessLogFrameworkService;
import com.eedi.framework.logger.convert.SysOperateLogConvert;
import com.eedi.framework.logger.service.SysOperateLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ApiAccessLogFrameworkServiceImpl implements ApiAccessLogFrameworkService {
    @Resource
    SysOperateLogService sysOperateLogService;
    @Override
    public void createApiAccessLog(ApiAccessLog apiAccessLog) {
        sysOperateLogService.createOperateLog(
                SysOperateLogConvert.INSTANCE.convert(apiAccessLog)
        );
    }
}
